<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>
      <div class="easyui-layout" data-options="fit:true">
   
		<div data-options="region:'center',title:'',bodyCls:'Mnolrbborder'">
			 <form id="addForm"  method="post">
			 
				<table class="add-user" id="repairTable">
					<tr>
						<td class="m-info-title">
						   车牌号:
						</td>
						<td class="m-info-content">
							<input style="width: 150px; height: 23px;" name="chepaihao"  id="chepaihao" />
						</td>
					</tr>
					<tr>
						<td class="m-info-title">
							车型:
						</td>
						<td class="m-info-content">
							<input style="width: 150px; height: 23px;" name="chexing"  id="chexing" />
						</td>
					</tr>
					<tr>
						<td class="m-info-title">
							最大体积:
						</td>
						<td class="m-info-content">
							<input style="width: 150px; height: 23px;" name="zuidatiji"  id="zuidatiji" />
						</td>
					</tr>
					<tr>
						<td class="m-info-title">
							载重:
						</td>
						<td class="m-info-content">
							<input style="width: 150px; height: 23px;" name="zaizhong"  id="zaizhong" />
						</td>
					</tr>
					<tr>
						<td class="m-info-title">
							载人数:
						</td>
						<td class="m-info-content">
							<input style="width: 150px; height: 23px;" name="zairen"  id="zairen" />
						</td>
					</tr>
					<tr>
						<td class="m-info-title">
							准驾驾照:
						</td>
						<td class="m-info-content">
							<input style="width: 150px; height: 23px;" name="jiazhao"  id="jiazhao" />
						</td>
					</tr>
					<tr>
						<td class="m-info-title">
							是否可用:
						</td>
						<td class="m-info-content">
							<input style="width: 150px; height: 23px;" name="zhuangtai"  id="zhuangtai" />
						</td>
					</tr>
					<tr>
						<td class="m-info-title">
							备注:
						</td>
						<td class="m-info-content">
							<input style="width: 150px; height: 23px;" name="beizhu"  id="beizhu" />
						</td>
					</tr>
					<tr>
						<td class="m-info-title">
							默认司机 :
						</td>
						<td class="m-info-content">
							<input style="width: 150px; height: 23px;" name="username" id="username" />
						</td>
					</tr>
					<tr>
						<td class="m-info-title">
							GPS :
						</td>
						<td class="m-info-content">
							<input style="width: 150px; height: 23px;" name="gpsid" id="gpsid" />
						</td>
					</tr>
					
				</table>
			</form>
		</div>
   
        <div data-options="region:'south',title:''" style="height: 80px; border: 0px;">
	         <table class="add-user">
	            <tr>
				    <td>
				       <div class="Mbutton25 createButton" id="saveButton">保存</div>
				    </td>
			    </tr>
			</table>
		</div>
	</div>
     
	
	<script type="text/javascript">

	   $(function(){
		   
	   		$("#saveButton").click(function() {
	   			
	  			if ($("#addForm").form("validate")) {
	  				var params = $("#addForm").serialize();
	  				$('#addForm').mask();
	  				$.ajax({
	  					type : "POST",
	  					url : "/adCheliang/addCheliang",
	  					data : params,
	  					success : function(response) {
	  						if (response=="success") 
	  						{  
	  							$('#addForm').mask("hide");
	  							$.messager.alert('提示', '新建成功', 'info', function() {
	  								$("#addwindom").window('close');
	  								$('#produceLabelTable').datagrid('reload');
	  							});
	  							
	  						}
	  						else{
	  							$('#addForm').mask("hide");
	  							$.messager.alert('提示', '新建失败'+response, 'error', function() {});
	  						} 
	  					},
	  					error : function() 
	  					{
	  						$('#addForm').mask("hide");
	  						$.messager.alert('提示', '新建失败', 'error', function() {});
	  					}
	  				});
	  			}  
  		   });
	
	   })
      
	    
	</script>
</body>
</html>
